// 获取当前本地时间，格式：YYYY/MM/DD HH:mm:ss
export function getCurrentTime() {
  const pad = n => n < 10 ? '0' + n : n;
  const now = new Date();
  const year = now.getFullYear();
  const month = pad(now.getMonth() + 1);
  const day = pad(now.getDate());
  const hour = pad(now.getHours());
  const minute = pad(now.getMinutes());
  const second = pad(now.getSeconds());
  return `${year}/${month}/${day} ${hour}:${minute}:${second}`;
} 